package com.baixun.gascommon.utils;


import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 登录接口，保存当前登录类信息
 */

@Component
public class LoginUser {

public static Long UserId;

public static String userName;

public static String token;


    public static Long getUserId() {
        return UserId;
    }

    public static void setUserId(Long userId) {
        UserId = userId;
    }

    public static String getUserName() {
        return userName;
    }

    public static void setUserName(String userName) {
        LoginUser.userName = userName;
    }

    public static String getToken() {
        return token;
    }

    public static void setToken(String token) {
        LoginUser.token = token;
    }
}
